package com.amigo.online.provider.user.config.bean;

import com.fasterxml.jackson.databind.ObjectMapper;

public class JsonObjectMapper extends ObjectMapper {
    public JsonObjectMapper(){
        super();
        this.setSerializerFactory(this.getSerializerFactory().withSerializerModifier(new MyStringBeanSerializerModifier()));
//        this.getSerializerProvider().setNullValueSerializer(new JsonSerializer<Object>() {
//            @Override
//            public void serialize(Object o, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException, JsonProcessingException {
//                jsonGenerator.writeString(StringUtils.EMPTY);
//
////                serializerProvider.;
////                jsonGenerator.writeNumber(-1);
//            }
//        });
    }

}
